namespace OneCaps.Core.Interfaces
{
    /// <summary>
    /// 支付终端服务接口
    /// </summary>
    public interface IPaymentTerminalService
    {
        /// <summary>
        /// 发起支付
        /// </summary>
        /// <param name="terminalId">终端编号</param>
        /// <param name="amount">金额</param>
        /// <param name="orderId">订单号</param>
        /// <returns>支付结果</returns>
        Task<PaymentResult> PayAsync(string terminalId, decimal amount, string orderId);

        /// <summary>
        /// 查询支付状态
        /// </summary>
        /// <param name="orderId">订单号</param>
        /// <returns>支付状态</returns>
        Task<PaymentStatusResult> GetPaymentStatusAsync(string orderId);
    }

    /// <summary>
    /// 支付结果
    /// </summary>
    public class PaymentResult
    {
        public bool Success { get; set; }
        public string? TransactionId { get; set; }
        public string? Message { get; set; }
    }

    /// <summary>
    /// 支付状态结果
    /// </summary>
    public class PaymentStatusResult
    {
        public bool Paid { get; set; }
        public string? TransactionId { get; set; }
        public string? Message { get; set; }
    }
} 